Implemented gtk_extended_layout_is_height_for_width() and added another guess algorithm
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Sun, 11 Apr 2010 02:39:11 +0000 (22:39 -0400)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Sun, 11 Apr 2010 02:39:11 +0000 (22:39 -0400)
commit6b89f05a99f62281953a806de3ef332d7e777ac9
tree9c5ca498feb2595c65533bc86264470344aced93
parent639e396147a02010a0d3eb7ec1cbef542321c2b2
Implemented gtk_extended_layout_is_height_for_width() and added another guess algorithm

This patch adds another commented algorythm to find the collective
minimum and natural height for a said width of a horizontally oriented
box (or the opposite). The algorithm works quite well and can be optimized
a bit more - currently its commented because GtkLabel cannot effectively
do width-for-height calculations (doh).

Further, this patch returns an is_height_for_width() preference depending
on the boxes orientation (vertical boxes are width-for-height).
gtk/gtkbox.c